home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Oct⁄Nov 88 / Modifier keys and menus ⁄ < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.8 KB  |  60 lines  |  [TEXT/GEOL]

  1. Item    3705507                         3-Nov-88        07:39
  2.  
  3. From:   D0756                           Tradenet, Dev, Adam Wildavsky
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Modifier Keys and Menus
  8.  
  9. Two items from Curt Bianchi follow which are answers to a question I posted
  10. here; I thought they would be of general interest.
  11.  
  12.  
  13.  
  14. Item    2099311                         28-Oct-88        16:15
  15.  
  16. From:   BIANCHI1                        Bianchi, Curt
  17.  
  18. To:     D0756                           Tradenet, Dev, Adam Wildavsky
  19.  
  20. Sub:    Response to Testing for
  21.  
  22. Hi Adam,
  23.  
  24. I know this response is a little late, but I didn't see an answer to your
  25. question, so...
  26.  
  27. In MacApp 2.0 we got rid of the global variable gEventInfo in order to better
  28. support nested event handling.  Unfortunately this exposed the fact that the
  29. event info isn't parametrically passed to all the methods that may need it
  30. (e.g. DoMenuCommand). We'll add the parameter to the next release of MacApp.
  31. In the meantime you can override a TApplication method like DispatchEvent and
  32. record the info in your own global variable.  Another possibility, depending on
  33. what you're doing, would be to override DoCommandKey, which is a TEvtHandler
  34. method that handles keystrokes when the command key is down.
  35.  
  36. Hope that helps.
  37.  
  38. Curt Bianchi
  39.  
  40.  
  41. Item    8876597                         2-Nov-88        11:07
  42.  
  43. From:   BIANCHI1                        Bianchi, Curt
  44.  
  45. To:     D0756                           Tradenet, Dev, Adam Wildavsky
  46.  
  47. Sub:    Response to Re - Testing for
  48.  
  49. Hi Adam,
  50.  
  51. You can go ahead and post my response.  Usually I copy MacApp.Tech$ but I guess
  52. I forgot.  It sounds like DoSetupMenus needs to have an EventInfo record passed
  53. to it.  I hate to do this because it will cause everyone to edit their sources,
  54. but it's really needed so we'll go ahead and do it.
  55.  
  56. Curt
  57.  
  58.  
  59.  
  60.